package com.yuzhi.system.service.impl;

import com.yuzhi.system.service.IHikVisionService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * 海康视频
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class HikVisionServiceImpl implements IHikVisionService {

    @Value("${hikvision.app_key}")
    private String appKey;

    @Value("${hikvision.app_secret}")
    private String appSecret;

    @Value("${hikvision.host}")
    private String host;

    /**
     * 获取海康视频
     * @param cameraIndexCode
     * @return
     *//*
    @Override
    public String queryVideoPreviewUrl(String cameraIndexCode) {
        log.info("HikVisionController getVideoPreviewUrl, " +
                "cameraIndexCode={}, host={}, appKey={}, appSecret={}", cameraIndexCode, host, appKey, appSecret);

        //获取海康视频预览链接
        String videUrl = HikvisionUtil.getVideoPreviewUrl(cameraIndexCode, host, appKey, appSecret);

        return videUrl;
    }*/
}
